﻿using System.Data;
using System.Dynamic;
using System.Linq.Expressions;
using SqlSugar;

namespace 请求响应加密.DAL
{
    public abstract class IRepository : SqlSugarClient
    {
        protected IRepository(ConnectionConfig config) : base(config)
        {
        }

        protected IRepository(List<ConnectionConfig> configs) : base(configs)
        {
        }

        protected IRepository(List<ConnectionConfig> configs, Action<SqlSugarClient> configAction) : base(configs, configAction)
        {
        }

        protected IRepository(ConnectionConfig config, Action<SqlSugarClient> configAction) : base(config, configAction)
        {
        }

        /// <summary>
        /// 切换数据库连接并设置切面拦截
        /// </summary>
        /// <param name="configId">数据库名称</param>
        public virtual void ChangeConnection(string configId) { }

        public virtual void Insert<T>(T entity) { }
    }
}
